package com.etc.service.impl;


import com.etc.dao.BuildingDao;
import com.etc.entity.Building;
import com.etc.service.BuildingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BuildingServiceImpl implements BuildingService {
    @Resource
    private BuildingDao buildingDao;

    @Override
    public int delBatch(List<Integer> ids) {
        return buildingDao.delBatch(ids);
    }

    @Override
    public List<Building> findBuildingByPark(Integer id) {
        return buildingDao.findBuildingByPark(id);
    }

    @Override
    public Building findBuildingById(Integer id) {
        return buildingDao.findBuildingById(id);
    }

}
